<script setup lang="ts">
import { useRouter,useRoute } from "vue-router"
import { getCurrentInstance, h } from "vue";
const router = useRouter()
const route = useRoute()
console.log(route.params)
const { proxy }:any = getCurrentInstance()
proxy.$message({
    message:h('p',null,[
        h('span',null,'Message can be111 '),
        h('i',{style: 'color:teal'},'VNcode'),
    ]),
})
</script>

<template>
    个人中心
    <button @click="() => router.push({path: '/home', query: {id:1}})">跳转到首页</button>
</template>

<style scoped>

</style>
